package com.wing.product.dao;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.product.model.response.ProductDetailVO;
import com.wing.product.model.response.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface MostUsedKnifeListDao  {



    /*删除*/
    boolean removeById(Long id);
    boolean removeDetailById(Long id);


    /*判断product表存不存在*/
    HashMap existById(Long productId);


    List<String> findAllDetailId();

    int countDetail(Long id);

    List<ProductDetailVO> findAll(@Param("page") Page<ProductDetailVO> page, @Param("params") Map<String, Object> params);

    /**
     * 查询作废物料
     * @param page
     * @param params
     * @return
     */
    List<ProductDetailVO> findAllCancellationMaterial(@Param("page") Page<ProductDetailVO> page, @Param("params") Map<String, Object> params);

}
